extends Card

func init():
    att.cry = 4
    lv = 2
    type = TYPE.MAGIC
    camp = "m_hearthstone"
    name = "暗影烈焰"
    dec = "消灭一个友方随从，对所有敌方随从造成等同于其攻击力的伤害。"

func _use(card,cell):
    if card != null :
        card.cardDeath(card,false)  # 消灭目标随从
        for i in sys.scene.getAllCard(getHero(),1,false):
            var damage = card.att.atk
            hurtCard(i,damage)
        
func useSelIf(card,cell):
    if card != null && card.type == TYPE.CREATURE && card.canSel && card.getHero() == getHero():
        return true
    return false